package com.czxy.tanhua.exception;

import com.czxy.tanhua.vo.ErrorResult;
import lombok.Data;

/**
 * @Author 爱吃豆的土豆、
 * @Date 2023/4/4 10:57
 */
@Data
public class BusinessException  extends  RuntimeException{
    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
